<template>
    <div class="main-layout">
       <header>
          <Header></Header>
       </header>
       <section>
         <aside>
            <Aside></Aside>
         </aside>
         <main>
            <Breadcrumb></Breadcrumb>
            <router-view></router-view>
         </main>
       </section>
    </div>
</template>

<script>
import  Header  from './components/Header'
import  Main  from './components/Main'
import  Aside  from './components/Aside'
import Breadcrumb from "./components/Breadcrumb"
  export default {
        name:"MainLayout",
         components: {
            Header,
            Main,
            Aside,
            Breadcrumb
        },
    }
</script>

<style lang="scss" scoped>
.main-layout{
    display: flex;
    flex-direction: column;
    height: 100%;
    header{
        flex-shrink: 0;
    }
    section{
        flex: 1;
        display: flex;
        overflow: hidden;
        max-height: 100%;
        aside{
            width: 200px;
            // height: 100%;
            max-height: 100%;
            overflow: auto;
        }
        main{
            flex: 1;
            background: #f8f9fa;
            height: 100%;
        }
    }
}
</style>